package com.ruoyi.grade.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程成绩对象 score
 * 
 * @author ruoyi
 * @date 2024-11-23
 */
public class Score extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成绩表 */
    private Long scoreId;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;

    /** 关联课程ID */
    @Excel(name = "关联课程ID")

    private Long courseId;

    @Excel(name = "关联用户名称")
    private String userName;



    @Excel(name = "关联课程名称")
    private String courseName;

    /** 得分 */
    @Excel(name = "得分")
    private BigDecimal score;

    /** 成绩评价或备注 */
    @Excel(name = "成绩评价或备注")
    private String comment;

    public void setScoreId(Long scoreId) 
    {
        this.scoreId = scoreId;
    }

    public Long getScoreId() 
    {
        return scoreId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setCourseId(Long courseId)
    {
        this.courseId = courseId;
    }

    public Long getCourseId()
    {
        return courseId;
    }
    public void setScore(BigDecimal score) 
    {
        this.score = score;
    }

    public BigDecimal getScore() 
    {
        return score;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("scoreId", getScoreId())
            .append("userId", getUserId())
            .append("courseId", getCourseId())
                .append("userName", getUserName())
                .append("courseName", getCourseName())
            .append("score", getScore())
            .append("comment", getComment())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
